fix protected access issue