Array access bug fixed.