fix bug with missing parentheses