fixed rbmidgen bug