Fixed bug in GSL (index += 1 in wrong place).