progressbar might not exist any more.
Fixes for tracking of user balance.
properly initialize task state.