Fixed save

Now it should support LE and BE when saving ints.