Fixed type of fm_elim function