fix: make rm command work correctly