fix log macros