prevent 'model is undefined' error in Cards