Railways to give money to ministry, not OC