[WIP] train bug fix