fixed resource url bug