correct error message for record comparison
fix type coersion for unsigned int