correct ed expression by adding a missing parenthesis