Fixed error when using with multiple yui-instances