fix for connection unsuccessful