Sanitize progresscb.

This fixes issue 24 for me.