fix bug of checkbox and deleting file