Bugfix: empty lines in input file caused List index out of range error