Fix incorrect conversion to unsigned