Fixed EF TPH inheritance issue.