fix major bug (some members left uninitialized)