fixed call to logging