Update x domain when unload in load API - #342