fix engine logger bug