CLDIDE-2139 Fixed setting of visibility