Fixed an issue with ref in ->is_a