fixed logic error when progress text needs to be resized