Fix an error when save an object without tags