Fix panic when setting uint from int value