fixed app data interfering with legend (and vice versa)