Fixed a bug where with binding where used instead of template binding