fix for issue #117, mouseUp while cutting a log causes problems