Fix gui opening