bug fixed - uid might repeated

Fixed the bug when a course owns multi times, the times may get same
uid. Resulting in only the last time can be displayed.