Fix for #89 'SCAYT gets disabled when opening and closing the template dialog'