Fixed the base url problem