fix a bug of getting class name from that one with namespace.