fixing jump to index