Fixed a bug that playEffect's loop doesn't work