Fix wrong way of formatting url