clearing layers while building new routes was fixed