fix deadend regex (again)