fix sync complete listener bug