[fix] maxItems setting not working