Fix fact term pattern by escaping