[Fix] Prevent adding ref several times