fix for posts view not rendering for non-logged in users