fixed errors in settings page if no relations/types are present