Restore visibility flags.