log: bug fix register class compare mismatch