The solution is to put the "my.polygon = on;" inside the model action.