fixing a weird regex