Fix #116: update url before updating html content