Fixed typo causing a NullPointerException.