fixed unsigned int errors