Fixed same bug that was in profile page, in the search page. Also removed print statment that was used for debugging purposes.