fix the ev hook bug