Fix gui references