fixed works index too