UIElement: Fix surface-event bug