rm error wrapping issue