Fixed uninitialised arrays.