fix a event render bug