Fixed waitConnect functions calling bug
New version