fixed incorrect index in new regex