fixed rit bug