fix bug in rfm12_trans moved cast