fix bug that file got deleted but the meta data remains