fixed bug in rt