Merge "getevent: Fix a couple of bugs."