fix bugs on record id-coverted to long from hex