fixed bug of load_new_resource_state