fixed indexing in von_mises chi square test