fix unsigned int bug