Corrected delete file mega bug