Fix for myevent_pathend() not firing.
Merge pull request #888 from sorlok/pathend_fix

Fix for myevent_pathend() not firing.