fixed endian bug in readDouble
NaN fix