Fixed GUI start up bug