fix for multiple rules