Fix visibility of internal variable