temp fix for big endian