fixed some url bugs