fixed bug in regex