Fixed undeployment bug