Fixed GUI loading bug