Fixed Endiness issue