Fixing bug: clicking on codebox made program crash.