Fix empty phrases and event handling.