fixed rails staging issue