fix progressfunction weirdness