In some circumstances codewiew was not removed from DOM tree when template is destroyed