fixed delete file filtering bug