Fixed issue where invalid paths would also appear as unused paths and double error