I'm surprised it does not crash, but I'm pretty sure this broke downsampling.