RM

added an if condition to fix bug with Ewebsite