Fix typo and add missing require.