fixed inheritance issue.