Flickering bug due to color_index sorting on server side