Fix smartcard erase