Correctly initialized some arrays to zero