Progress bar resetting properly