quickfix: string / integer casting in eventhandler problem