On the fission barrier of heavy and superheavy nuclei