bugfix to save url