bug 1008: Fixed missing end tag