tweak freeze_attributes hack