fix bug delete unpublished material