Progress bar works correctly