Fix bug with progress bar in tasks. Fix tasks status