bugfix to deply script