fixed a bug about changing mode in cronizer