Logging and exception that shouldn't happen corrected