Fixed typo in smartIdx (again)