fix index not found error