fixed the bug where the progress bars would animate multiple times