fix exclude regex bug