fix: avoid possible nullish exception