[#266]Fix issue with templates on Firefox