Fixed Bug of Deleting the wrong file.