solve some bugs in dektopApp