fix railway rules