fix log calls