add log when refid not exist