fix bug modifying regex to work