fix object type check in utilities