fixed bug in read_rmf.pro