HotFix: fixed a rare bug when retriving the sample codes when changing a subject