Fixed the issue that X.F app creates two windows (#219)