States start at 0 in prism export file
Fixes #2