Fixed incorrect bigarray data access