fix model __setattr__ check