Fixed write for zp corrected catalog