Fixed Class object constructor.