PBar: set maximum when cancelling