fix wifi synchronization problem