fix loop after signed -> unsigned type change