Fix typo and incorrect type