I think this bug will be solved on next update. @TimaWUB helped me to reproduce the bug and I found flag that Ive missed to reset when throwing a potion after cancelling an staff zap.