bug fix in rt-map