Fixed the loading resource behaviour under dev mode