Fixed bug in regex