fixed bug in show template