fixing template display