Fixed type error in update attribute increment/decrement