fix a few crashes with unset data