Fixing type on maxlen