fix warning message on null variables