Fix bug in Select Template and Prevent IE error for console.

Release to Production.