fixes bad positioning of isDate
Fixes a typo