Fixed NPE-causing typo