I just tried changing prepared spells, even doing that right after learning them, I was able to cast them immediately.
Unless I'm missing something as well, this might be a bug.