fixed alert play function