prevent incorrect connection state being registered