Fixes bugs when pictureset's 'order' field is uncomplete or lists wrong ids