Fixed bug with OOP and constructors.