fix bug in pause / resume play