fixed loading of endian parm on layout.c