In case of auto-vivification we were fetching dim twice and as such also emitting the undef var warning twice.