Corrected an issue with the callbacks from dat.gui