fixing visible=true exception