fix old rail error