Fix case of undefined value