quick fix for uncatched null pointer