catch key error in label set