Fix RailPlacer taking too many rails.