fixed small issue with deploy method