fixed loging