I think the problem might be due to "selection list".
If you just remove all those GUI element, then the code can not find the selected level so there is an error.
Find the name for the selection list ,and find code related to that name, replace with proper value/code.