Fixed issue with gear_array.c