Fix inifinite loop play sound by ACT.

Fix infinite loop play sound  when play sound by ACT is enabled.