fixed issue with progressIndex