fixing some url bugs