Bug fixed when pass<>pass2