fix mode option when without callback