object type check bug fix