update AR correct errors

If we add attributes with behavior  getAttribute and setAttribute can`t work with that.