Bind index controller correctly.