card template fix