Realize undefined values by setting them to zero