Fixed issue with classifications not being 0-based.