fix wrong mode