Base url correction