Fixed if condition for E