Fixed minor rerailer bug