fixes an error in gui.js