Fix base url problem