index() method signature was wrong.