fixed bug in calculating overall progress