fixing bugs in editor packet routines