Fixed problem with reattach causing extra shells