Fixed bug that happened for logged out users in the content index page