fixed bugs in products and email template