fixed path problem in changing urls