Fix processing states, broken arabic indexing