Removing compilation problems related to the generic typing