Allocating correct size for zero array