fix broken Model->set method