Fix: syntax warning and url join issue.