Avoid crashing bug

Need to figure out why this happens in the first place. Can only reliable reproduce with >1e5 runifs
Reserve space for all inputs