Fix conditions to properly redirect to the top page.
Merge pull request #12 from kyow/items_controllers_bug

Fix conditions to properly redirect to the top page.