Bug fixed: wrong class object in the logging