bug fix to undeploy-grid