Fixed inheritance issue.