fix bug on regex components