Fixed empty ref