Removes warning

makes sure comparison is just with one thing and so removes the warning
message
fixed NA / NULL bug

NULL was being allocated to a list and was causing an error when the
ddf models did not converge