m2x rails fix