Fix retrieveCard method