fix Issue 8697 - Invalid error message: Forward reference of interface