Fixed output URL bugs.