fix key of undefined