Editor now saves bug code correctly on submit