Fix logger error. #395