fix the add action/resource