Corrected endianness registering problem on script.