fix problem with visibility to avoid compilation problem