Fix end paranthesis bug