fix event handling in book