Fix script for hot redeploy