Fix an id issue when restore components
The first id '0' is skiped