Fix a bug, we should default to "cbc" IF mode is nil.