Fix mode declaration