Fix validate reference