fix problem of event starting when clicked on graph