maxLength bug - Issue #16