fixup rails