update m-n limits
Merge pull request #2177 from matiu/bug/m-n-limits

Bug/m n limits