Fixed an error when removing both files