fix model setattr check