Fixed an issue in which capturing was happening even when the entire invocation did not match. -Micah and James