Fixed unsigned short reading (it can't be a short in JAVA, it doesn't fit)