Fix manual generation of indexes