get rid of duplicate control-event
hack to make lines work