Reset cursor state on execute