fixed typo to allow null