bugfix temporary index