fix the bug that delete doesn't work on desktop