Unbind on hide and change last scope name.