Fixed a weird issue with the construction of roads where infinite loops where prone to happen