fix card block compile warnings