Initial register
Bug fixed when pass<>pass2