Corrects invalid rm placement.