Fix handling of wrong PIN