fix ratId print