fix resource_url caused bugs