Fixed compiler warning 'conversion from unsigned long to unsigned int, may loose value'