fix null for define function
chang log