fixed after_restart deploy hook