fix truncated LOC parsing, closes #894