Remove invalid reference