fix for specifying type when creating new Card