fix private attribute warning

fix private attribute warning