fix event update query bug