Fixed destroyUIs issue #56