fix config NULL defref