ensure maxTagLimit is a number