Fixing a bug in parsing that assumes the record length >= 3

Fixes #13