Fix: raise correct error in accelerate mode

Just a typo.