Dealt with object keys with undefined values