fixing https://issues.jboss.org/browse/JBDS-3199 and a typo