Fix compilation by adding generics information.