Fix wifi initialization order