ensure class is shown if something is defined