fix demo mouseup glitch