Fix event update bug