Use the right dimensions for the coocurrence matrix.