fixed issue with empty matrices when pruning empty rows / columns