Fix logger functions