fixed the loading resource for dev mode