bug (inline templates) fixed