Fix undefined displaying