Fixing bug in public home page view