editor hiccup duplicating code