Fix the type conversion error from unsigned int to int.