Fixed a stupid bug where some data members was not initialized