Fixed constructor's missing class field initialization.

Could possibly cause null-pointer errors.