Fixed a bug where core has an attribute error