Fixing stupid bug in parsing facets data

This was a stupid bug - sorry about that.  Have added a test for it.