Javadoc, fix bug with wrong method being called.