Fixed a few bugs with EnderRail