Fix attribute overflow