fix log setup