Fixing progress bar to not throw strict errors