Removing error on connect