fixed pattern match bug