fix "mode" field