fix invalid logger call