correct display frame when use attribute template (closes #4113)