Fix wrong memory layout setting.