Fixed GUI/ Window pop up to not give error