fix duplicate calls to the action listener