EXR Z-Depth export problems

Hello, I’m trying to export an EXR sequence with depth information for compositing in After Effects, but I’m having strange troubles. I’ve set up the scene with the final composite node set to “3D” and the depth view looks like the first image. When the EXRs are imported to AE though, the depth channel looks like the second image. What’s going on?