Fix order-of-operations for hoa/event setting

Issue #330.