added fix for index crash in labels view