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