fix error in handleEvents