fix private/public bug