Ablative, not dative.
Here is a plain-English overview of what the cases are and how they work:
Latin cases, in English
Adjectives must agree in gender, number, and case with the nouns they modify, but they have their own declensions. Sometimes you get lucky and the adjective just happens to follow the same declension as the noun, but that is not a guarantee.
That sounds like a glitch. Next time something like that happens, take a screenshot and file a bug report: