fixed deleting commands bug with AST getting mis-aligned