Fixed littleEndian function.