Fix problem with zero-sized component viewer