fixed deploy scripts bug