fixed invocation of is_a.