Fix issue with refactoring function at '('