Fixed bug with template in options not working