fix "null" bug with $.ui.setTitle