fix problem with degrees of freedom using min.set instead of npcs