Fixed config parsing