bug fix for latitude/longitude byteArray

Checks the upper bits in the 4 byte representation of data.