add backwards compatibility

apparently this patch caused plot IDs to be shifted, breaking older versions. Fixed it now