Fix removal of pin when transaction completed