Fix multiple editor bug #20