Fixed reading and writing UAS values