Fix 1-based indexing error message

Fixes #286