fixing base url problem