fixed issues with scaling and deleting nodes