wrong client defined type var ref