Fixed a bug causing crashed when opening new UI.