bug fix, detach was not called on plugin layer with no compositing