add valid 1 for valid paths which were invalid at last check