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