Fixed issues in deployment script loading data