signed shorts to unsigned for int cast fix