Fix showing the progress of erasing and programming