handle wrong values in attrubutes