Fix codes (was passing Cards, not codes)