Fix accel code