fixes yui and prevents double unbinding