fixed train char issue