Fix big to little endian problem