Fixed a layout exception while rendering feature template