Wrong placement of setting maxItems