Fix several bugs in visual editor