Fixed error with updateAttributes.