Fixed default value of idx in acceleration