fixed index on references, docs