Fixed bug in validate reference