fix deleting files