fixes log calls.