fixed RESOURCE_URL bug