fixed IE bug in template