Fixed bug with constructor.