Fix typo causing NullPointerException