added support for empty progressbars