bug fix in maketensorbasis