Fixed box deletion bug.
Merge branch 'autorouter_port' into demo