Many fixes

- Fix problem to m > 8
- For space reasons, of data m <= 12