Fixed some uninitialised variables.