connect fix

fixed how the pointer was referenced/dereferenced