fix issue in rm