fix: foreclose nullpointer chance