Bug with inherited types fixed!