Fixed accelerometer initialization