fixed null pointer ambiguity