bug fix for generic objects