bug fix for read_4D_hdr