fixed #191 (Double clicking on history entry throws exception)