fix bug in play clear function