Fixed bugs with multiple dots and empty parentheses