allow for nils fixes #3180