Fix layers not being untracked.