fix get_card  check in flip