Fix maxItems toggle