fixed a bug with the config modal