error in parsing lists in special cases

Fixes #165