added another num_elements check and changed print to debug print
Merge pull request #1095 from karlnapf/develop

added another num_elements check and changed print to debug print