fixed a mode-specifying error.