fixing rm issue