fix URL format issues