fix for disabling drag on exit