changed the fix for publishing error