Fixing a small gui script issue