fixed bug with (fake) deleting file