fix bug with minsize
Merge branch 'refactor' into gh-pages