sane cursor placing on exit