Bugfix: couldn't connect from mga