Fix the key prefix bug