make sure card model is created before deck model