Fixed bugs in templates.

Fixed bugs in templates.
Change the order number of clip.