Solved bug which caused GUI not to display