Bug spotted. It will be fixed in next release.
David
PS: I also added the possibility to set a priority on the wifi network.
Just set wifi2.priority = 20 to prioritize second wifi (20 is totally arbitrary here, make sure to put higher values to prioritized wifi)