I think I figured out what causes this bug. It has to do with presets. For example, I have a raids preset were I use ancients. Let's say I'm currently on normal spellbook and use my raids preset. I will not be able to use any spell or teleport on spellbook unless I relog or swap spellbook then I'll be on the spellbook that I was when created the preset. Spellbooks apply to presets but something is messed up that bugs it up.
@Xenith