fix a bug that delete buttons don't work