Compilation problems with polymorphic classes fixed