progress dialog : set range correctly