Fixed error in regex return