Fix the types of the log levels.