Clear attribute length on write.