Fixed bug of context in template

Fixed bug of context in template