Exceptions which were thrown by not finding the right type are now fixed
and found correctly.