add error message when subWidget not instanceof Widget