avoiding a null pointer exception (previous issue)

corrected a typo that was spotted.