fix bug http://gitlab.polyvi.com/xface/xface-extension-xapp/issues/2