Fix undefined value