Fixed flush callback array access