Fix debug message wrong class