fix bug in regex