Fix issue of try clause, enable method should use root class name