array -> object layout fix