fixed match proc bug