#5561 deleting scope