Fix clear activity stack flags;