fixed bug with escaped <srai> templates