Made changes in the GUI and added two MessageBoxes for debugging. That error is really weird..