Fix attribute type