Set a correct constructor attribute to inherited classes.