removes global template display bug