fixes bug in config