bugfix: wrong index was removed from basis set