Bugfixes for the commandline implementation of the program
Iterator was already used for plugin sorting