Fix accessibiliy type check.