fix a bug when proficient id is null