Fix attribute name in script