fix: null pointer access fix