fix: typo dereferencing NULL instead of a string