fixed deploy script bug