Fixes #10790, this fixes an error with using uninitialized arrays