Fix varInt implementation