Fixed invalid inheritance