Properly fix issue #36 - make sure `ev` is actually defined