Fix a npc talk crash bug. Simplify popup code a bit and fix a size bug.