fix recursive call to deploy