Fixes urls and config