fixed display issue with shared template