fix build cards from json