Fixed bug relating to yale matrix resizing