Fixes uninitialised values errors.