Bugfix in automatic cutoff for steam locos