fixing custom template full content bug