bugfix for pause