fixed deploy function
reset hard