fixed a bug in UIController