Fixed relative url bugs