fix error -index not found-