fixed bug relating to yale matrix resizing