Fix missing activation of api clearance at end.