Forgot to ensure correct sorting after downsampling. Now fixed