refactor bug fix , change study.id into study.uid