fix a log delete bug