fix lack of memory in EngModelArray