fix logger call