set null instead of undefined