Deploy script fixed