Fxied inline_templates
Added the reason in error message