remove useless logs and try to make sure the log is in sync