Solved the problem in which non-square cell arrays would not populate
correctly