Fixed readArray
Fixed readArray