Set default value of visibility to 1.