fix some knowledge limit in code