updated titleforplotindex, fixed calayer crash