fix(model): fix issue where first element of array models is undefined