prevent weird undefined key