change max length for terms and metadata