Fix endian bug introduced during cleanup process.