fix bug when :fm_register