Fix dual restart on deploy