fix for num elements
Merge branch 'master' of https://github.com/nomacs/nomacs