fixes bug on view event for not-logged in user
build