fix drawEvent