fix a bug with auto play param