Fixed bug in deployment script