Fixed log deletion error