Protect against double initialization of mode.