fix options.template access method