Fix connect

Change-Id: I6ff1f092aaf5a0cdfe608e82629e85a1bf685648
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>