Update UIModel.js

fix the bug