Fixed Crashing

Fixed crashing when ) was used as the argument for the argument for the pattern.