Fixed maxItems bug.
Merge branch 'tmp-merge'