Fix crash when play audio at last seconds.