filter out undefined lables