fix bug when trying to remove not existing file