Fixed a bug with the not existing constructor of some classes