Fix destroy bug on multiple show/hide targets. Fixes #685