Fix bug with prefix hash length