fixed double assertion bug