bug fix mod_rec