fixed attr() method value type