fix for hdr