File deletion error fixed