Use $set operator for proper updating.