fix call to private attribute