fixed potentially evil hanging error on pausing.