small correction in demo script hdr.lua