fix a nil? check