Fixed maxLength issue: Bug #818270