fixed trainbugs