Fix wrong code introduced when doing JSDoc related refactoring