Fixed issue #17
Setting progress before view was drawn cause unexpected results