Fixed unsigned int to remove warnings