Swati sees railways out of losses in few months