bug thread pause/unpause