fix initialize visibility