fix inserting a hidden value

not sure how this worked before, because I don't think I changed anything to do with it