Fix errors while use wifi