modifying card templates to ensure they compiles
sorry for all thoses changes :-(