Fix typo and javadoc