bug fix for invalidation (also allow invalidation of objects when these objects are