fix bad regexing