bugfix a missing index