Bug fixing: visual editor