fix ticket1457 parse to bitset
Merge pull request #195 from giuliolunati/fixparsetobitset

fix ticket1457 parse to bitset