fix automatic gui opening