fix matrix dimensions