Fix initialization bug on constructor.