Fixed deleted file bug