Fix updating attributes