Progress bar percentage fix