Fixed bug where editor was overwriting dialog code.