Fixed maxItems bug.